package live.testdemo.bazi.common.util;

import com.nlf.calendar.Lunar;
import com.nlf.calendar.eightchar.Yun;

import live.testdemo.bazi.common.constants.Action;

/**
 * Created by chentz on 2017/11/17.
 */
public class BaZiUtils {
    public static final String[] JIA_ZI = {
            "甲子", "乙丑", "丙寅", "丁卯", "戊辰", "己巳", "庚午", "辛未", "壬申", "癸酉",
            "甲戌", "乙亥", "丙子", "丁丑", "戊寅", "己卯", "庚辰", "辛巳", "壬午", "癸未",
            "甲申", "乙酉", "丙戌", "丁亥", "戊子", "己丑", "庚寅", "辛卯", "壬辰", "癸巳",
            "甲午", "乙未", "丙申", "丁酉", "戊戌", "己亥", "庚子", "辛丑", "壬寅", "癸卯",
            "甲辰", "乙巳", "丙午", "丁未", "戊申", "己酉", "庚戌", "辛亥", "壬子", "癸丑",
            "甲寅", "乙卯", "丙辰", "丁巳", "戊午", "己未", "庚申", "辛酉", "壬戌", "癸亥"
    };
    
    public static void main(String[] args) {
        Lunar lunar = Lunar.fromYmdHms(1991, 1, 11, 1, 30, 00);
        System.out.println(lunar.getEightChar().getDayDiShi());
        System.out.println(lunar.getEightChar());
        System.out.println(lunar.getDayChong());
        System.out.println(lunar.getDayXiongSha());
        System.out.println(lunar.getTimeChong());
        System.out.println(Action.克);
        Yun yun = lunar.getEightChar().getYun(1);
        System.out.println(Action.克.equals("克"));
    }
    public static final long BASE_TIMESTAMP = 633715200L;
}
